package com.ornate.platform.user.action;

import java.util.Map;

import com.ornate.core.support.ActionSupportProvider;
import com.ornate.platform.user.biz.IUserBiz;

public class UserAction extends ActionSupportProvider {

	private static final long serialVersionUID = -6745506701240737189L;

	private IUserBiz userBiz;

	public String query() {
		Map<String, Object> params = getParameterMap();
		setJSONPagingResult(userBiz.query(params), userBiz.count(params));
		return JSON_OBJECT;
	}
	
	public String count() {
		Map<String, Object> params = getParameterMap();
		userBiz.count(params);
		return JSON_RESULT;
	}

	public void setUserBiz(IUserBiz userBiz) {
		this.userBiz = userBiz;
	}

}
